<?php
$tags = $t['tags'];
foreach ($tags as &$tag) {
    $route = $ro->gen('tag', array('tag'=>$tag));
    $tag = sprintf('<a href="%s">%s</a>', $route, $tag);
}
?><?php
if ($t['comment_on_moderation']):
?>
<div class="warning-note">Your comment is submitted and awaiting for approvement from the site owner.</div>
<?php
endif;
?>
<div class="full-entry">
<div class="title"><?php echo htmlspecialchars($t['title']); ?></div>

<div class="service"><?php echo $t['date'] ?> <?php echo $t['time'] ?> |
        tags: <?php echo implode(', ', $tags); ?>
</div>

<?php if($us->isAuthenticated() && $us->hasCredential('posts.edit') && $us->hasCredential('posts.delete')): ?>
<div class="service">
    <div class="service"><a href="<?php echo $t['edit_route']; ?>">edit</a> |
        <a href="<?php echo $t['delete_route']; ?>">delete</a>
    </div>
</div>
<?php endif; ?>

<div class="body">
<?php echo $t['body']; ?>
</div>

</div>

